<?php

namespace App\Http\Controllers\Admin;

use App\Model\Admin as AdminModel;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class Admin extends Controller
{
    //
    public function all(){

        $adminInfo= AdminModel::orderBy('is_super','asc')->orderBy('status','asc')->paginate(10);

        $viewData=[
            'adminInfo'=>$adminInfo
        ];
        return view('admin.admin.index',$viewData);
    }
}
